package cn.tedu.dao.persist.repositoy.impl;

import cn.tedu.dao.persist.mapper.WorkExperienceMapper;
import cn.tedu.dao.persist.repositoy.IWorkExperienceRepository;
import cn.tedu.pojo.entity.WorkExperience;
import cn.tedu.pojo.vo.UserDetailsVO;
import cn.tedu.pojo.vo.WorkExperienceVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class WorkExperienceRepositoryImpl implements IWorkExperienceRepository {

    @Autowired
    private WorkExperienceMapper workExperienceMapper;

    @Override
    public WorkExperienceVO getStandard(Long id) {
        return workExperienceMapper.getStandard(id);
    }

    @Override
    public int insert(WorkExperience workExperience) {
        return workExperienceMapper.insert(workExperience);
    }

    @Override
    public int updateById(WorkExperience workExperience) {
        return workExperienceMapper.updateById(workExperience);
    }

    @Override
    public List<WorkExperienceVO> list(Long userId) {
        return workExperienceMapper.list(userId);
    }
}
